package com.secsbrain.cmdb.job;

import java.io.IOException;

import com.secsbrain.cmdb.biz.IHostService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时获取服务器信息
 *
 * @author zhaoyi
 */
@Component("loadServerJob")
public class LoadServerJob {
    
    private static final Logger logger = LoggerFactory.getLogger(LoadServerJob.class);

    @Autowired
    private IHostService hostService;
    
    public void loadServer(){
    	try {
			hostService.loadServer("admin");
		} catch (IOException e) {
			logger.error("",e);
		}
    }
    
}
